package com.lds.employment.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.lds.employment.mapper.EmploymentQuestionTypeMapper;
import com.lds.employment.domain.EmploymentQuestionType;
import com.lds.employment.service.IEmploymentQuestionTypeService;

/**
 * 问题分类Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-01-05
 */
@Service
public class EmploymentQuestionTypeServiceImpl implements IEmploymentQuestionTypeService 
{
    @Autowired
    private EmploymentQuestionTypeMapper employmentQuestionTypeMapper;

    /**
     * 查询问题分类
     * 
     * @param id 问题分类主键
     * @return 问题分类
     */
    @Override
    public EmploymentQuestionType selectEmploymentQuestionTypeById(Long id)
    {
        return employmentQuestionTypeMapper.selectEmploymentQuestionTypeById(id);
    }

    /**
     * 查询问题分类列表
     * 
     * @param employmentQuestionType 问题分类
     * @return 问题分类
     */
    @Override
    public List<EmploymentQuestionType> selectEmploymentQuestionTypeList(EmploymentQuestionType employmentQuestionType)
    {
        return employmentQuestionTypeMapper.selectEmploymentQuestionTypeList(employmentQuestionType);
    }

    /**
     * 新增问题分类
     * 
     * @param employmentQuestionType 问题分类
     * @return 结果
     */
    @Override
    public int insertEmploymentQuestionType(EmploymentQuestionType employmentQuestionType)
    {
        return employmentQuestionTypeMapper.insertEmploymentQuestionType(employmentQuestionType);
    }

    /**
     * 修改问题分类
     * 
     * @param employmentQuestionType 问题分类
     * @return 结果
     */
    @Override
    public int updateEmploymentQuestionType(EmploymentQuestionType employmentQuestionType)
    {
        return employmentQuestionTypeMapper.updateEmploymentQuestionType(employmentQuestionType);
    }

    /**
     * 批量删除问题分类
     * 
     * @param ids 需要删除的问题分类主键
     * @return 结果
     */
    @Override
    public int deleteEmploymentQuestionTypeByIds(Long[] ids)
    {
        return employmentQuestionTypeMapper.deleteEmploymentQuestionTypeByIds(ids);
    }

    /**
     * 删除问题分类信息
     * 
     * @param id 问题分类主键
     * @return 结果
     */
    @Override
    public int deleteEmploymentQuestionTypeById(Long id)
    {
        return employmentQuestionTypeMapper.deleteEmploymentQuestionTypeById(id);
    }
}
